export const useCustomPromise = () => {
    let resolve = null
    let reject = null
    let promise = null

    const refresh = () => {
        promise = new Promise((_resolve, _reject) => {
            resolve = _resolve
            reject = _reject
        })
    }

    refresh()

    return {
        refresh,
        promise,
        resolve,
        reject
    }
}